import Button from '@mui/material/Button'
import { useNavigate } from 'react-router'

export default function NotFound() {
  const navigate = useNavigate()
  return (
    <div className="full-v box-center flex-col">
      <h2>404</h2>
      <p className="my-3">页面找不到</p>
      <Button variant="contained" onClick={() => navigate('/')}>
        去首页
      </Button>
    </div>
  )
}
